<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        var arr = ['关羽', '张飞', '马超', '赵云', '吕布', '黄忠', '刘备'];
        for (let i = 0; i < arr.length; i++) {
            console.log(arr[i]);
        }
        // 数组的长度： 数组名.length 
       
    </script>
</head>

<body>

</body>

</html>